import request from '@/utils/request'

export const getUserlist = () => {
  return request({
    url: '/service-user/user/getUser',
    method: 'get',
  })
}
export const saveUser = data => {
  return request({
    url: '/service-user/userrole/saveuserrole',
    method: 'post',
    data: data,
  })
}
export const removeUser = userId => {
  return request({
    url: '/service-user/user/removeUser/' + userId,
    method: 'post',
  })
}
export const updateUser = data => {
  return request({
    url: '/service-user/user/updateUser',
    method: 'post',
    params: data,
  })
}
